<?php
namespace App\Helpers;

class Single
{
    private static $instance;
    private function __construct()
    {}
    private function __clone()
    {
        trigger_error('Clone is not allow', E_USER_ERROR);
    }
    public static function getInstance()
    {
        if (!isset(self::$instance)) {
            self::$instance = new self();
        }
        return self::$instance;
    }
    public function getName()
    {
        return "single_".time();
    }
}
